from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from users.views import RegisterUserAPIView
from . import views
urlpatterns = [
#/users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.RegisterUsernameAPIView.as_view(),name='usernamecount'),
    url(r'^$', views.RegisterUserAPIView.as_view()),
    url(r'^auths/',obtain_jwt_token),
    url(r'^infos/$', views.UserCenterInfoAPIView.as_view()),
    url(r'emails/$',views.UserEmailAPIView.as_view()),
]

